﻿using System;

namespace Microsoft.Extensions.DependencyInjection
{
    public static partial class UnitOfWorkSqlServerServiceCollectionExtensions
    {
        private class DefaultUnitOfWorkDefaultConfigurationBuilder : IUnitOfWorkDefaultConfigurationBuilder
        {
            public IUnitOfWorkSqlServerBuilder UnitOfWorkSqlServerBuilder { get; private set; }
            public DefaultUnitOfWorkDefaultConfigurationBuilder(IUnitOfWorkSqlServerBuilder unitOfWorkSqlServerBuilder) => UnitOfWorkSqlServerBuilder = unitOfWorkSqlServerBuilder;
            public IServiceProvider Build() => UnitOfWorkSqlServerBuilder.Build();
        }
    }
}
